/**
 * 
 */
package com.zc.BankCreditManagement.Test;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.zc.BankCreditManagement.Exception.ZCException;
import com.zc.BankCreditManagement.JavaBean.EmailVerify;
import com.zc.BankCreditManagement.ServiceImpl.EmailVerifyServiceImpl;
import com.zc.BankCreditManagement.ZCUtil.SendEmail;

/**
 * @author ZhangCheng
 * @time 2019年9月27日
 */
public class TestEmail {

	/**
	 * @param args
	 * @throws ZCException 
	 */
	public static void main(String[] args) throws ZCException {
//		SendEmail sE = new SendEmail();
//		String returnTips = sE.sendEmailContent("6873094@qq.com", "zc", "老胡，又又好久不见！", "<h1>Hello!</h1>", "2268874211@qq.com","wesleycheng@foxmail.com");
//		if("发送成功".equals(returnTips)) {
//			System.out.println(returnTips);
//		}else {
//			throw new ZCException(returnTips);
//		}
		
		EmailVerifyServiceImpl eVSI = new EmailVerifyServiceImpl();
		EmailVerify eV = new EmailVerify(125, "153", null);
		System.out.println(eVSI.saveThisCode(eV, 5));

	}

}
